current mathematic code moved to geometry. new geometric functions and code rearrangement