a command line java program that thresholds .pgm images