debugging
fixed sign bug in bounded sum
more debugging