memory usage testings added shows that dynamic is more efficent, while being less safe