Golang Rabin-Karp hash