Simple Arduino function that speeds up trigonometry functions (original code (C) Oscar Liang)