minor update
- enhanced safety stock planning, part I
- improved cluster definition
replaced some dynamic_cast with faster static_cast