codes for popular algorithms in computer science