[core] Adding support for recolorCube in ctypes. Performance improvement in using ravel over flatten. Some bug fixes. Branch is now stable