Added dot and cross products