[MFMC]: Code for basic function. It can run. Result is not verified.