Remove init_table and fix clear

``init_table`` API of nearest_neighbor is not implemented, and ``clear`` should implement re-initialization of the table but it does not, yet. So this change implements that ``clear`` now clears the table, and removes ``init_table`` since it is not needed any more.