added main file and description of the algorithm