ISSUES:
Currently it is thread unsafe. Have to think how to make it thread safe.

IDEAS:
Use array to separate data and localize to threads.

SOLVED:
Enabled to change its size in non-parallel programming.