rsmatrix in progress

Signed-off-by: fabio <fbi.gritti@gmail.com>