Optimal best arm selection for general distributions