Updating FindModeLinear 

handling more cases here