make all algorithms take cell instread of matrices as input

Algorithms now take cell arrays as input. Makes it possible to test
several sequences of different length.