Update PasswordCrack.java

added more helper methods