finished lab5 (template heap class)