Update to latest rust and cargo. Implement minimax_memory behaviour