Update Block.java

added overidden hashCode()