update CBB520HW2_Part5.java class, use bruceforce instead of hash