Adding updated version for printing heap or any binary tree represented as an array in pretty format