trend filtering implemented