fix compile on windows:

- replace dynamic stack array with std::vector
Merge pull request #1 from shuffle2/master

fix compile on windows: