move get_{grandparent,uncle} functions outside of RBTree class

Signed-off-by: Andrew Tselischev <andrewtselischev@gmail.com>