Priority queue in Objective-c