initial commit of vectorize() and apply()