Various algorithms with sort, find and etc