Implement the doParallel method and move library, #7