Angelo Perera made history by scoring a double hundred in each innings of a first-class match in Sri Lanka.