* Found bug in Agent's resampling. When restrict was set to true it was
forcing the first reward to be smaller, rather than the first cost to
be smaller.

Fixed and reverted code to older version.