Adding findSmallest() function, Updating return codes to have BTREE_ in the name