improved speed by replacing Limited_List with a dynamic allocated array