add common hash function (algorithms).