Bilateral Soft Assignment (Matlab demo)