Homework 7 Solutions

Would be easier to read if you did something like:
int parent = (index-1)/2;
and then just used it