Review and changes from Jocelyn Fiat

added m5_hash function ... to factorize code.