Implemented java.lang.Runtime.maxMemory and its test case as discussed in int3/doppio#222