Add 2nd exercise code to tex and make that code A LOT faster