Odom, Mavericks work out parting agreement