Žiadanka emailom: An Algorithm for Investigating the Structure of Material Surfaces