Add self to functions defined in BTree class.