Ruby implementation of sharmir's secret sharing