BlockUI: bypassing overridden equals and hashCode

Changed HashMap to TreeMap
Manually find index of an instruction in an array