The corner generation algorithm seems to be working. However, there is an error if you try to make a boost array of different sizes ie x=/=y.