Changed input NDArray to const for AJD class and fixed a memory leak in ICA unit tests and examples