added bending
added sparsing and finished matrix insertion