Implmented hashmap and priority queue for offers