Shamir Secret Sharing in Java