Hochschild homology and cohomology of some classical and quantum noncommutative polynomial algebras