compared with Hash and Bsearch performance