better search suggestions algorithm