RWSEM algorithm
Revert "RWSEM algorithm"

This reverts commit e973700a02139785fdc3922e72b6245504911269.