Column Compressed Sparse Matrix Format - Coding problem | OneNoughtOne