Implementing SHA1 alogrithm