create min heap of hashmaps successfully and accurately