added boilerplate for heap implementation
added functions to implementation file