def reduceDimensions(matrix):
    """
    Decrease any list/matrix dimensions by one.

    Parameters
    ----------
    matrix: Multidimensional Array

    Returns
    -------
    list: The matrix after reducing it's dimensions.
    """
    # Doesn't accept vectors/(1-dimensional matrices)
    # If matrix is a vector return it without changes
    if (type(matrix[0]) is not list): return matrix
    new_matrix = []
    for item in matrix:
        new_matrix += item
    return new_matrix