Extract trigonometry functions into own gem