Added support for multi-dimension hyperstacks

Stackreg can be run on multi-channel hyperstacks. Also, it can run over slices or frames, chosen by the user.