New version of LineStorage using Dynamic Arrays for storage