added max pool and average pool and test cases