STOCK OPTIONS AND STOCK BASED COMPENSATION (Details 1) - USD ($)
$ / shares in Units, $ in Millions
3 Months Ended 12 Months Ended
Jan. 31, 2017
Oct. 31, 2016
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]    
Number of Shares, Outstanding and expected to vest at October 31, 2016 198,700  
Number of Shares, Granted 0  
Number of Shares, Forfeited (5,614)  
Number of Shares, Exercised 0  
Number of Shares, Outstanding and expected to vest at January 31, 2017 193,086 198,700
Number of Shares, Exercisable at January 31, 2017 152,311  
Weighted Average Exercise Price, Outstanding and expected to vest at October 31, 2016 (in dollars per share) $ 30.16  
Weighted Average Exercise Price, Granted (in dollars per share) 0  
Weighted Average Exercise Price, Forfeited (in dollars per share) 74.48  
Weighted Average Exercise Price, Exercised (in dollars per share) 0  
Weighted Average Exercise Price, Outstanding and expected to vest at January 31, 2017 28.87 $ 30.16
Weighted Average Exercise Price, Exercisable at January 31, 2017 (in dollars per share) $ 33.33  
Weighted Average Remaining Contractual Term, Outstanding and expected to vest at end of the period (in years) 4 years 10 months 28 days 5 years 7 days
Weighted Average Remaining Contractual Term, Exercisable at January 31, 2017 (in years) 3 years 11 months 16 days  
Aggregate Intrinsic Value, Outstanding and expected to vest at October 31, 2016 $ 0  
Aggregate Intrinsic Value, Outstanding and expected to vest at January 31, 2017 0 $ 0
Aggregate Intrinsic Value, Exercisable at January 31, 2017 (in dollars) $ 0