solved 079 half paper half algorithm, still need to perfect algorithm