Compute cost & gradient: regularized linear regression with mult variables