feat(library/rewriter): add skeleton for depth rewriter
fix(hash): use size_t as a return type of hash function