head returns the first n1 x n2 x n3 entries, tail returns the last
n1 x n2 x n3 entries.
Arguments
x
MAgPIE object
n1, n2, n3
number of lines in first, second and third dimension that
should be returned. If the given number is higher than the length of the
dimension all entries in this dimension will be returned.