Java program that runs a collision attack for hashes