miscellaneous changees: lhmm update to 1D arrays
added original implementation of lhmm for sanity checks