Implemented voice recognition algorithm