Find the maxK elements in an ADT using min-Heap and applying Visitor Pattern