add more functions for geometry
some geometry functions by complex
divide and conquer algorithm on a tree