Refactored data structure used to store stock entries.

Removing double linked list with array list.