merged from index_dev.
clang warnings and error in nearest_k fixed. added insert_traverse_data. added additional tests.