Implement second part of findHighLow. Fix bugs