conversion of KPABE to be more general than was before, and to accept any secret sharing scheme. Compilation ok. Tests not updated: do not compile.