B-Tree Implementation in PHP