Implemented slope-intercept calculator