Made a clone method again fro ReplicaManager since TaskManager is not serializable
Attempts for making ReplicaManager serializable again. Problem lies with TaskManager...