Generic Segment Tree with Lazy Propogation. Updated.
Spoj LGLOVE