Leetcode Smallest Value Array Python Initialize Matrix