Created by: wangyang59
In response to Issue #330 (closed), I modified the paddle API so that when creating Matrix, Vector and IVector, the default value of useGpu is set to FLAGS_use_gpu. I have also added a few %newobject declaration in Paddle.swig to prevent mem leakage.