Simplified implementation of parallel algorithms, removed ability to handle futures as inputs (this needs more thinking). Fixed parallel::count.