adding stack example, find min recursively