Algorithms of facial recognition through sketches