ENH: added support for different data orientations and binary formats