C implementation of RL and IRL algorithms