Binary search for searching element.