added multiply method
added toDense method
changed semantic of transpose method