added bubble search and time measurement