finish linear regression in Python (data from cdv)

finally worked it out
little weird
define function for linear regression

 Actually, methods cannot be overloaded like in other programming
language, since the main idea to overload is to use different types and
numbers of the parameters. But in Python, parameters in a defined
method don’t have a particular data type.