Fix leak improve perf

- Fix leaks by replace raw pointers to STL container

- Fix invalid access in applyDeformation() `r.getDef().w` will return a temp obj of `def`

- Improve performance by replace appendArray with vecctor::push_back

- Improve performance by introduce C++11 std::move

- remove `using namespace std` reduce name space pollution.