add special case for 2d case when calculing angle between two vectors