Sorted Array for javascript - uses binary search for fast insertion / reading