Im currently writing a program that uses Heap class, to find the max value in part of array (size of part is k), which is moving in array, until reaches the end. It crushes