Fixed minor mistake about testing ensure_w.
Fixed a \max to a \min.
Merge branch 'coursera-sp14' of github.com:jdelacroix/simiam into coursera-week-3