change interface of LCCRF algorithm to matrix which seperates feature extraction and algorithm completely.