Worked on Frechet painting classes

* FrechetDiagram uses FreeSpacePainter instead of a grid of SegmentPanes
* FreeSpacePainter has been optimized