@staticmethod 
    def extendArray(A, newShape, val=0):
        
        tempA = numpy.ones(newShape)*val
        tempA[0:A.shape[0], 0:A.shape[1]] = A 
        return tempA
Take a 2D matrix A and extend the shape to newShape adding zeros to the 
dataset/ETHPy150Open charanpald/APGL/apgl/util/Util.py/Util.extendArray