Implementation of SHA256 algorithm