Tree data structure tutorial 14. Fenwick trees and implementation