Added pitch detection algorithms