An approach to detect lofar lines
Dynamic Programming