fixe .push method
added binarySearch method to sort array elements