search in sorted array solution added