Bubble search (now improved and polymorphic)