How would you filter unique values from a list without using built-in library functions?
Implement the function without using set, dict, list.count, list.index, or equivalent collection helpers. Preserve the order of first appearances and support integers, strings, and other equality-comparable values.
Function: filter_unique(values)
Input: a list of equality-comparable values. Output: a new list containing each distinct value once.
def filter_unique(values):