Implemented red-black trees and a common iterator interface