other demo file
fixed bug that only 2 dimensions were considered
OMG fixed all of ittt! @panmari my hero