Generalized Parikh Vector and Public Key Cryptosystems