attempt to use red-black tree; it has pointer problems.