basic implementation of find-largest-contiguous