write initial concurrent search implementation