Efficient classical algorithms for simulating symmetric quantum systems