Fixed featureCompare and modifiedLCS.  Perhaps less readable, but now function properly (I hope/think)