Added code to count and swap zeroes, and outline of code to perform the other algorithm steps (in the main method).