Added ability to use weights in smacof implementation