Some coding practice of popular algorithms