Rewite the computeTimes with Writer

I've rewritten the computeTimes method using the Writer Monad. It may be slightly better, since it uses tail recustion internally.