Merge pull request #1323 from gsomix/feature/parser

Fixed invalid read in Parser, CSVFile constructor is shortened
define _USE_MATH_DEFINES to get non-standard constant M_PI
Update LMNN to compute outer products on demand instead of keeping them in memory.
Update its unit tests too.
Merge pull request #1329 from iglesias/feature/lmnn

Update LMNN to compute outer products on demand instead of keeping them ...
fixed format for fprintf in CSVFile