Fix the increasing allocating memory problem

Maximum memory of node will be the maximum of list length