Implementation of Sparse Filtering Algorithm