Add heap datastructure and function prototypes of it. Also clean up other datastructure indenting