Update core.clj and worksheet1 with Pareto optimisation.

- Copy all functions from test-work-sheet needed for main Pareto optimised
program into core.clj.
- Copy configuration functions from test-work-sheet into worksheet1 so that
worksheet1 can be used as a primary interface to the program.