fixed MathHelper.get_distances_from_trendline..the perpendicular slope was being incorrectly calculated