fixed logic error in the ear clip function
modified spec expected results for new ear clip algorithm