Add matlab code to extract patches and calc sifts