Classes to manipulate phantoms and dose distributions used by EGSnrc