Custom implementation of list to prevent copying lists