Added some C++ comments.
Fixed a bug where the C++ solver could rotate blocks into other blocks.