Refactoring, some performance concerns
Added enumeration of RBTrees for a given size