Gas prices in Maryland nearing $5 a gallon