Read Euler solution and implemented optimisations