developing red black trees (stuck on AA trees); misc. tweaks and functions all around