add predict function to linear regression
add cost descent figure