added structural similarity implementation.