how to convert bip39 mnemonic seed phrase into private key without any libraries like web3 or ethers.js
basically I'm trying to replicate my metamasks wallets private key
so I would like to write a function that takes my seed words as my input and return the private key for ethereum based wallets
privateKey = function([seed_1, seed_2, ..., seed_12]);
Where do I get started?