indexOfMaxValue: add a table with all negative numbers (fix #289)