1. Add a tolerance.

2. Replace matrix norms by vectors norms (suggested by Moshin).


It would be great if people do run the tests before merging...