using Levenberg-Marquardt library in NDK for Android Application