Changed neighbor data storage to a c_matrix for performance and ease of coding reasons.