Sequential analysis and controlled random processes (discrete time)