Implementation of algorithms for range addition, deletion and point query