move to shared_ptr, simplify counstructor call
move to shared_ptr, simplify counstructor call

stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math