Ventilator for the treatment of acute respiratory distress syndrome