Sorting the NSDictionary using bubble sort