added contacts search code for stack-overflow

resolves #106