Changing the log_debug macro to make it accept any number of argumetns
Fixing a bug in computing prefix sum
Adding a testcase for prefix sum.
cosmetics