add Fenwick.cpp