Merge RIPEMD160 implementation from gsoc branch