created max heap. unified query and dataReader class usage