explicitly finalize progress bar
added unit tests for parallel_map
rename module parfor to parallel