Merge pull request #153 from avinashcpandey/develop

AMP ScanByKey fix for 65535 tile limit issue + Buffer optimization
Made changes to binary search
Fixed compilation issues