don't break original bzip input
protect from memory errors
Merge branch 'master' of github.com:eschulte/optimization