Algorithm For Time Complexity Of Linear Regression