First step of lrCostFunction

I think J is fine, grad is wrong