phrygian and lydian cases added (not tested, need all chord permutations)