IT WORKS! (BUT there is a slight memory leak in the B-Tree)