new scripts and gpu code for dict learning