Adding code for Splay tree