use immutable arrays. On the slicing and roation operations we see a 10x performance increase.