Greatly improved performance of CSV report output type

- replaced internal library for generating CSV files with native code
- reports generation time no longer scales linearly with the number of rows