implemented both optimize() and branch() methods.
added replace() and largestDiagonal() to Candidate.

Also added getFixes() to RectangleSet.