modifed cap_Add.java; added more comments and and the recursion solution to non-recursion