Made the AngleBetweenVectors functions safer (isnan)