added both hashing algorithms, allow user adjustable buffer size.