Method of substantially continuously separating two compounds using a moving bed or a simulated moving bed