Added new structure so nodes with zero neighbors are stored effeciently.