wrote function to generate s[i] and s[i]s[j] encryptions for relinearization