Implementable schemes for lossy compression