return int array at search
small update: change code format
add print time opt
add return before fail
move print time to util.h