Source code of a KTH master thesis project to develop a white space detector for spectrum-sensing cognitive radio