compute cost: linear regression with one variable