CalOptrix library implemented using android NDK