Resource-efficient algorithms and circuits for highly-scalable BMI channel architectures