Fix to the MAST algorithm; now correctly calculates symmetries.