Naive implementations in Python, Go, Ruby etc.