finished peripheral  item sorter.  Borrowed StackHelper.java from BuildCraft https://github.com/BuildCraft/BuildCraft/blob/nightly/common/buildcraft/core/inventory/StackHelper.java