completed SimpleMode.js, checked for test cases including zeros and without modes