Added function top and changed support into primitive and fixed the type of division and improved printing of matrices