In repmat, rep -> rep.int

in functionalProgramming.r modify newline or some comments
added assing function and small bug fix