Changed Logic class to fit a more generic purpose. Added two
implementations (altering keys' values and counting the number of nodes
in the tree).