Portal of Johannes and Felix's RNN implementation and further modifications for ASR