big refactor of point common operations
improve performance for about 1 second with inline functions
add some inline functions to improve performance