Minimum time problem with impulsive and ordinary controls