l1apply function

Applying lapply on the rows