added contact search naive algorithm