Added method 'rebuild' to the Map interface.
Fix bug in the 'clear' method.
Changed build order of some classes.
Fixed getHeight() method, so that it returns canvas height.
Median Cut heuristic can handle more efficiently objects with centroids at the same place. By using a flag, to indicate that the node is a leaf in a case that the centroids are at the same place