Adding solution for problem 8 in python.
Adding solution for problem 9 in python.
Adding solution for problem 10 in python.
Adding solution for problem 8 in lua.
Adding solution for problem 9 in lua.
Adding solution for problem 10 in lua.
Redoing the main algorithm to be more efficient.