added sort solution for missing number problem