edit bug in search
edit range query search => now range query works well
change ARRAY_SIZE -1 to last_idx -1
make last idx is REAL idx of last item
delete unused variables
add corner case of range query