Added program to create solution to a matrix in low memory-usage way