Home prices gain in 2013