Shamir secret sharing library