improved checkConcav() to make sure slopes are always decreasing and endpoints are always increasing
Merge branch 'master' of https://github.com/jeffreydarling/243group