point class extended
some algorithms added