Also note, I am adding two more store function, corresponding to Java iterator. Everything is Java friendly.