a library implementing Shamir's secret sharing algorithm