Finished code to add data for rotations and reflections of patterns.