fit line using basic arithmetic

Issue: #98