finish initial cudamat version + tests