Change underlying data structure from static array to red black tree for perf.