Added random selection and splay trees