Added GPU implementation for template matching.