Implementation of approximate k-nearest-neighbors with PatchMatch