Fixed dot product error for 2D vectors