added byte swap library