undo converson of writeParents to recursive functions without mutables.  next attempt will be to try and use List.fold instead.
undo converson of writeParents to recursive functions without mutables.  next attempt will be to try and use List.fold instead.

ericsink/LSM,ericsink/LSM