Added bubble sort method