Wrote and tested flatten.
Finished Part 1.  All functions in sequence.ml complete and tested.