stl priority_queue works with custom data class.