add checksums functions: md5sum and sha1sum

ref #5.