Fixes #20: Use binary search algorithm to get/add transforms and messages in the transform buffer.