Faster code for finding numeric splitter