add algorithm find min number