Resolved cubify header issue, fixed bug in find_local_max.