added big-endian support to binarywriter (NEED TEST SUITE SOON)