advanced programming and problem solving with pascal pdf phd thesis latex template uk