Without using Comparator interface. A basic bubble sort implementation