STOCK OPTIONS AND STOCK BASED COMPENSATION (Details 3) | 6 Months Ended |
Apr. 30, 2017$ / sharesshares |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | $ 2.81 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 119.80 |
Options Outstanding, Shares Outstanding (in shares) | shares | 274,473 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 8 years 8 months 23 days |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 13.74 |
Options Exercisable, Shares (in shares) | shares | 88,038 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 33.93 |
Range Of Exercise Prices One [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 0 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 2.81 |
Options Outstanding, Shares Outstanding (in shares) | shares | 150,000 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 9 years 11 months 1 day |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 2.81 |
Options Exercisable, Shares (in shares) | shares | 0 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 0 |
Range Of Exercise Prices Two [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 5.90 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 5.90 |
Options Outstanding, Shares Outstanding (in shares) | shares | 32,000 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 9 years 1 month 6 days |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 5.90 |
Options Exercisable, Shares (in shares) | shares | 0 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 0 |
Range Of Exercise Prices Three [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 11.98 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 25.62 |
Options Outstanding, Shares Outstanding (in shares) | shares | 39,939 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 6 years 6 months 4 days |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 23.42 |
Options Exercisable, Shares (in shares) | shares | 39,939 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 23.42 |
Range Of Exercise Prices Four [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 25.96 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 42.60 |
Options Outstanding, Shares Outstanding (in shares) | shares | 34,627 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 7 years 1 month 10 days |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 36.13 |
Options Exercisable, Shares (in shares) | shares | 33,047 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 36.56 |
Range Of Exercise Prices Five [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 45.59 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 83.19 |
Options Outstanding, Shares Outstanding (in shares) | shares | 17,213 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 6 years 2 months 23 days |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 52.61 |
Options Exercisable, Shares (in shares) | shares | 14,358 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 53.98 |
Range Of Exercise Prices Six [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 84.53 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 84.53 |
Options Outstanding, Shares Outstanding (in shares) | shares | 148 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 4 years 6 months |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 84.53 |
Options Exercisable, Shares (in shares) | shares | 148 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 84.53 |
Range Of Exercise Prices Seven [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 91.85 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 91.85 |
Options Outstanding, Shares Outstanding (in shares) | shares | 136 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 4 years |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 91.85 |
Options Exercisable, Shares (in shares) | shares | 136 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 91.85 |
Range Of Exercise Prices Eight [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 98.50 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 98.50 |
Options Outstanding, Shares Outstanding (in shares) | shares | 126 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 5 years |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 98.50 |
Options Exercisable, Shares (in shares) | shares | 126 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 98.50 |
Range Of Exercise Prices Nine [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 99.83 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 99.83 |
Options Outstanding, Shares Outstanding (in shares) | shares | 180 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 4 years 9 months 4 days |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 99.83 |
Options Exercisable, Shares (in shares) | shares | 180 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 99.83 |
Range Of Exercise Prices Ten [Member] | |
Share-based Compensation, Shares Authorized under Stock Option Plans, Exercise Price Range [Line Items] | |
Range of Exercise Prices, Lower Limit (in dollars per share) | 119.80 |
Range of Exercise Prices, Upper Limit (in dollars per share) | $ 119.80 |
Options Outstanding, Shares Outstanding (in shares) | shares | 104 |
Options Outstanding, Weighted Average Remaining Contractual Term (in years) | 4 years 3 months |
Options Outstanding, Weighted Average Exercise Price (in dollars per share) | $ 119.80 |
Options Exercisable, Shares (in shares) | shares | 104 |
Options Exercisable, Weighted Average Exercise Price (in dollars per share) | $ 119.80 |