improved next set bit