A method for 21 cm power spectrum estimation in the presence of foregrounds | Synapse