started using classes in cpp :D fenwickTree ftw, segTrees next