use mut function argument syntax in priority_queue