Added more efficient system for finding empty frames. Uses list of
integers for frames. In chooseUnpinnedBuffer under default frame
selection.