moved code to ghostlib and ghostmath
additional optimization
more optimization
more optimization (ghostdraw, inside cylinder_to_pts)