Ex2 update

Hi, Eric.
I've done my ex2 finally :)
This is some extra tests for costFunction and predict function.
It seems like I've deleted some trailing spaces too, I'm sorry for a mess in diff.