add enable_monitoring param and use shared memory histograms on non-lines
Add enable_monitoring parameter in non-line algorithms, similar to what is done for lines.
Also added it for some Lines where it was not being used.
Default value both for Lines and non-Lines unchanged.
Use shared memory as a mid step for monitoring histograms/counters to reduce atomics to global memory in non-lines algorithms.
Edited by Sergio Andres Estrada