Three arrays are used: Score(x,i) is the calculated score at position x, assuming it has an SRL of i; Source(x,i) is the previous bar start or end assuming there is an end or start at position x with SRL i; Start(x,i) is the location of the beginning of the symbol that x is in, assuming x has an SRL of i.