Simpler taylor series approximation of sin + inlining of some addVertexInternal subroutines