Passing vector of vectors to Java from C++ using JNI

While using JNI, it becomes a little bit of burden whenever you want to pass something more complex than simple types back to Java.