Fixed bugs in the management of tiff files

Improved the test for detaching suffix .tif in file names
Added management of endianness in tiff files

If endianness of the machine is different from that of the file
multi-byte pixels are swapped.
Changed the interface of function readTiff3DFile2Buffer