Merge pull request #13 from phpseclib/master

sync
optimizations
Merge pull request #106 from petrich/optimizations

Optimizations