refactored stuff
merged
successfully implemented the Fermat point
fj
fj