Fixing MIP and re-order MoFREAK descriptor

Hi Whiten,
I'm Chung-Yu Chi, a master student studying at National Taiwan University GIEE. I'm very impressed by your work MoFREAK, and I'm doing some experiments and researches based on your work. During the research, I thought I may have found some small bugs and would like to discuss with you.

While calculating Motion Interchange Pattern, I thought the declaration of "p" and "p2" should be outside of the two "for" loops to make the calculation of SSD right. Is my thought correct?

On the other hand, in the MoFREAK descriptor, I thought "ftr.motion" nominally encode the motion part and "ftr.appearance" should encode the appearance part. So I swapped two recording parts. It's not a big problem because the modification won't effect any results. It just re-order the encoding of MoFREAK and make the code more reasonable.

Thank you and have a nice day!