Changed trellis vector to list, improved speed