Update endians.nim

adds swapEndian16 function
Merge pull request #775 from fowlmouth/patch-3

Update endians.nim