Working on marchingcubes algorithm