Remove dup lines
Remove extra arr
Return if N < 4