rotate_loadings function

Rotate loadings based on posterior median