created priority Queue with min heap