Added a NESW-padding function + UnitTest.