replace variable length arrays with std::vector
Merge pull request #24 from alex85k/array-to-vector

replace variable length arrays with std::vector