Unify memory allocation calls accross the library

While i was working in the jemalloc support in libshogun, i've realised that there are some classes/codes in the library that are still natively calling calloc/malloc/realloc instead of SG_CALLOC etc.

regardless of the memory manager replacement this should be fixed, i.e. unified using the SG_ memory allocation calls...or?