added dot product cross product and squared length