Refactored Batchallocator; added PCIe rank compute