Changed calculation for triangle slopes. Fixes one of the issues in GitHub issue #23