Updated bt_index.cpp to implement search and insert correctly