dancing links implementation in python and go