fixed index ordering in original Mishra/Neuman solution, trying to get Malama version working