DISCLAIMER: I implemented this to a) learn a bit more about correlated agreement and b) because I felt providing a Nim implementation would provide an easy path to a very fast CPU and GPU ...