Apply properties of dot product (#613)

Apply properties of dot product (#613)

Use commutativity, distributivity, scalar multiplication properties.