added methods to find min positive missing element