added insert and query test
changed main to print the number of queries run by testInsertQuery()
fixed hazard pointer issues, fixed Query to assist Subdivide