Added function for a 1-d convolution layer andfunctionality for context length