jni matrix funzionante

Signed-off-by: Sebastiano Mariani <seba0691@gmail.com>