Automated Assembly Problem Using an FFT Based Matching Approach