Remove node from ready_nodes when it is selected
Preparation for parallel job execution
Simplify xmalloc implementation
Add xcalloc method
Implement parallel job execution