Lab3 endianReverse subroutine implemented