divide and round up swap instead of physical to fix off by 1 errors
Merge pull request #1 from PeerJ/FixOffByOne

divide and round up swap instead of physical to fix off by 1 errors