calcUnique              Pass only unique values to a computationally
                        expensive function that returns an output of
                        the same length as the input.
