County, Muncie juvenile facility enter agreement