Write a simple program to find duplicate elements in an array using basic loops.
Implement find_duplicates(arr), which accepts a list of integers and returns each value that appears more than once, included only once in the output. Preserve the order in which duplicate values are first detected. The expected approach should use basic loops rather than a set or dictionary.
def find_duplicates(arr):