Several fixes for MLDataHDF5File
Use SG_ memory allocation functions instead of stdlib ones
use SG_CALLOC to allocate NULLed char* string
fix some memory leaks
New termination criteria for LMNN
Merge pull request #1599 from iglesias/feature/lmnn_diagonal

New termination criteria for LMNN