solution to UVa 12086 - Potentiometers using Fenwick tree
added <cstring> header to template/main.cpp