Method for programming phase change memory cells with multiple memory levels using a Perkolationsalgorithmus