Adding probability distribution

- Fixing total cost calculator
- Making sure to reschedule jobs after failure