add functions

add sem and nansem, standard error of mean