User Defined Hash Function For tr1