Bilateal Soft Assignment (matlab demo)