Introduced a simple linked list class to cut down on memory consumption in indices