Implemented factor constructor for multidimentional lists