added hash function for block header