finished lab 5 step one
change INFINITY to INT_MAX
passed all lab 5 tests