Added checkAssociative and helper functions to GroupInput.hs