Allow setting grid size and particle count on the command line.

Use a vector rather than an array as size is no longer known at compile time. Split output into a new file now the functions are not templates.