HKU CSIS8301 course project: Implementation of Pastry protocol.