moved lfsrPartition code into function in lfsrUtils.h for convenience