Upate ignore to ignore the file names from mounted samba share on Mac.
Fully verctorized the cost function for logistic regression:

Besides the gradient, also vectorize the cost: J(theta).
As J is like the format of inner product, it is easy to vectorize it.