S&P 500 heads for a flat end to volatile 2015