Change the Pasta calculator algo to make it more readable and fix all style cop issues for Pasta.* projects.