did bubble sort
changed base to 2 for bubble sort