An overview on distance and pseudo distance functions and their applications