GPUArray slice operation return a new GPUArray

Add a test script
Merge branch 'master' of github.com:allenbo/distnet