add a simple implementation of splay tree