Implementation of chain replication algorithm in Go programming language