realization of ripemd160 hash algorithm