Use C++11 pointers for memory management
Remove unnecessary variable crows