Added memory and time limit to evaluator.

It doesn't yet notify that the memory limit has been exceeded,
just kills the process.