Use std::vector to allocate memory.
Merge pull request #150 from simongog/do_not_use_new_and_delete

Use always std::vector to allocate memory.