first occurrence of element in sorted array