moved helped functions out of server
Merge branch 'master' of github.com:wangjohn/order_preserving_encryption