16. Miscellaneous Algorithms