added more scale modes & bug fix

Fixed error which made range of 9 the max possibility when it should be
10.
added pattern prevention for two note groupings

i.e., Sometimes the end of a cantus firmus would end up being (2 1 2
1).  This change prevents that.