Efficient task replication for fast response times in parallel computation