add replaceWith method to Node.java
add replace method to ChildNodesList.java
refactored tuple and name equality check
added exceptions to NameNodeTuple constructor