Involutive Division Technique: Some Generalizations and Optimizations