A Group Theoretic Approach to Assembly Planning