Implementation of Nash and Knapsack cryptosystem