Moved logic from view to model

The logic for Simple Linear regression line has been moved from toneView into toneModel. Previous tonedata is now stored in
the current inputstate that the toneModel has access to.