Fixed heuristic for grouping bar candidates

Signed-off-by: Gabriel Vigliensoni <gabriel@vigliensoni.com>
.gitignore

Signed-off-by: Gabriel Vigliensoni <gabriel@vigliensoni.com>