Detailed SIFT algorithm