Added Fenwick tree. Fixed tabs/spaces problem