Some families of relativistic anisotropic compact stellar models embedded in pseudo-Euclidean space $$E^5$$E5: an algorithm