added power
added fake implementation for generate matrix