Update miscFunctions.r

library(plyr) added right before optimal weight clustering algorithm