Adds function to find max height of trajectory