add iterator, use CheckedOutputStream
add serialisation to rmm tree
use n instead of B.size()
reorder serialised LCP data