use mutable function argument syntax in treemap
use mut function argument syntax in priority_queue
Merge pull request #4633 from thestinger/treemap

use mutable function argument syntax in treemap/priority_queue