Update LMNN to compute outer products on demand instead of keeping them ...

...in memory.

Update its unit tests too.