Fix container overflow
Fix container overflow

AddressSanitizer caught this problem
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")

reserve is not correct here. it should be resize.

stevschmid/nsearch