rew_sanity_check function

Transform a reward matrix with very small rewards to avoid numerical problems