Heterogeneous version.

PGISVM2, heterogeneous version of this model.