Subroutines that takes array of variable rank as input

Nice. That’s a pretty neat way of doing it! Many thanks!