Issue #3 : Performance and memory consumption improved. Edit

Fixed: https://github.com/CERT-Polska/hsn2-js-sta/pull/4