refactoring heap into header class
fixed Fibonacci name typo
refactoring, plus moved template definition into header to make compiler happy