Part2: Implement algorithm using microphone array