Added bubble sort function
Getting memory exception