Corrected javadoc and wrote the code for getSize() in Pile