Added bubble sort method for ordering arrays