added c wrapper d ric mhe & made interface general memory for IP mpc, ric mpc, ric mhe