Common Element, sorted and unsorted arrays