Add trendline calculation
Merge pull request #450 from JelteF/feature-trendline

Add trend line calculation