def mbuild(width, height):
    """Build a NxN matrix filled with 0."""
    result = list()
    for i in range(height):
        result.append(list())
        for j in range(width):
            result[i].append(0.0)
    return result