I wonder if air-to-air heat exchangers could address that cost issue.
http://i.ebayimg.com/images/i/151452729196-0-1/s-l1000.jpg https://prod.scorptec.com.au/10/299/65429/121859_large.jpg https://brain-images-ssl.cdn.dixons.com/7/2/10178327/l_10178...
That way outgoing air would warm (or cool) the incoming air. If a Hepa filter could be added to the incoming air fan it would make an ideal unit to put in the window at fairly low cost. Since they are CPU coolers they could probably be made speed adjustable also.
Countercurrent exchange is the way to go with a scheme like this, so you'd want a series of pipes at varying temperature.