untested buddy algorithm