Add python implementation of matrix fill problem.