Heap, tasks

Solution on I - task