closer to accurate filtering of bad rows
added method to trim invalid odd rows from a set
refactoring the trimming algorithm