refactored RB tree implementation
refactored Leftist Heaps a bit