WIP: update function to work for 2D data WARNING: only for column wise --> need to update for other 2D algo
WIP: update function to work for 2D data
WARNING: only for column wise --> need to update for other 2D algo

Former-commit-id: 8c6ae2c2d045b03d148f0b07c3b29709e1bd2726 [formerly ba29ff1b4ef4d3aed20bf73e50da2aab2d430266]
Former-commit-id: abe7730705163bd86638a4419aea073961d78681
Former-commit-id: 3d6d99e065f590c41897ead20927bc1c97f43d85
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox