Some corrections to algorithms
Layout file deleted