Fixed the implementation of LSWI and STSWI. Simplified the implementation of VSL and VSR.