R and Matlab code added
C scripts & examples