got old WIM2d code from hexagon
WIM2d.m - initial commit based on old_code from hexagon