NYMEX Gasoline Oct. futures settle at $3.5870 a gallon