Shamir's secret sharing algorithm (Example in Golang)