STOCK OPTIONS AND STOCK BASED COMPENSATION (Details) - USD ($)
$ in Thousands
3 Months Ended
Jan. 31, 2017
Jan. 31, 2016
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]    
Total stock-based compensation $ 71 $ 309
Discontinued Operations [Member]    
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]    
Total stock-based compensation 0 116
General and administrative [Member]    
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]    
Total stock-based compensation $ 71 $ 193