Improved verticals detection for barline
Identify barlines from verticals