Switch back to primitive arrays and binary insert and binary search respectively.