A binary tree approach to template placement for searches for gravitational waves from compact binary mergers