added heap class