Problem 27 done.
More opimisation is possible, runtime is fine atm
Christmas cleanup